<?php

function audit($page_id,$host_id) {
  $CI = get_instance();
  $user_system_user_id = $CI->db_session->userdata('user_system_user_id');
  log_message('debug', "Audit logging user:$user_system_user_id, page:$page_id, host:$host_id");  
  $CI->load->model('Model_main', 'main');
  $CI->main->audit_user($user_system_user_id,$page_id,$host_id); 
}

?>